﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Order_ReturnDocEdit" Codebehind="ReturnDocEdit.aspx.cs" %>

<%@ Register Src="../Controls/BUTTONDJ.ascx" TagName="BUTTONDJ" TagPrefix="uc1" %>
<%@ Register Src="../Controls/RETURNNOTEListControl.ascx" TagName="RETURNNOTEListControl"
    TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script src="../Include/JS/SocanCode.js"></script>
    <script type="text/javascript">
    function jsf()
    {}
    function CountAamt()
    {
        document.getElementById("Label13").innerText = document.getElementById("hidReturnDocAmt").value*1.00 - document.getElementById("txtwlfy").value*1.00+document.getElementById("txtRangLi").value*1.00
    }
    /*
    function CountRangLiAamt(control)
    {
        document.getElementById("Label13").innerText = document.getElementById("hidReturnDocAmt").value*1.00 + control.value*1.00
    }
    */
    function Mask()
    {
        var div_back = document.getElementById("div_background");
        div_back.style.display = "block"; 
    }

    function HidMask()
    {
        var div_back = document.getElementById("div_background");
        div_back.style.display = "none";    
    }
    </script>
<style type="text/css">
h2 {width:100%;padding-left:20px;padding-top:10px;margin:0; background: url(../../Include/Images/menu_title.gif) repeat-x;height:21px;font-size:14px; font-weight:600;}
.menu_bg {width:100%;background-color:#fef3bb; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cf994b 1px solid;}
.menu_bg2 {width:100%;background-color:#cccccc;text-align:left;margin:10px 0 10px 0;padding-top:5px;padding-bottom:5px;border:#CCCCCC 0px solid; font-size:12px;padding-left:20px;}
.menu_bg3 {width:100%;background-color:#cccccc;text-align:left;margin:10px 0 10px 0;border:#CCCCCC 0px solid; font-size:12px;padding-left:20px;line-height:22px;}
.jiacu {float:left; font-weight:bold;padding-top:5px;}
.bk_left {border-bottom:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 1px solid;border-top:#999999 0px solid;}
.bk_middle {border-bottom:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 0px solid;border-top:#999999 0px solid;}   
.divbackground
{
z-index:9;display:none;position:absolute;width:1120px;height:1040px;left:0px;top:0px;background-color:#8C8C8C;opacity: 0.5;filter:alpha(opacity=50,finishopacity=50,style=1);}
</style>
</head>
<body>
    <form id="form1" runat="server">
 <div align="Justify">
 <h2>退货单</h2>
      <div class="menu_bg"><uc1:BUTTONDJ ID="BUTTONDJ1" runat="server" OnLoad="BUTTONDJ1_Load" />
          <%--<input id="btnClear" runat="server" type="button" value="结算" onclick="OpenWindow()" />--%>
          <asp:Button ID="btnClear" runat="server" CssClass="input_button" Text="结算" OnClick="btnClear_Click" />
          
      </div>
      
     <asp:Panel ID="pnlReturnDocInfo" runat="server">
        <div class="juli">
            <table style="background-color: #999999;" border="0" cellspacing="1" cellpadding="0">
                <tr class="z2">
                    <td class="zt5" width="120" style="height: 19px">退货单编号：

                    </td>
                    <td width="200" style="height: 19px">
                    <asp:Label ID="lbldm" runat="server" Text=''></asp:Label>
                    </td>
                    <td class="zt5" width="120" style="height: 19px">会员帐号：

                    </td>
                    <td style="width: 200px; height: 19px"><asp:Label ID="lblgmr" runat="server" Text=""></asp:Label>
                    </td>
                </tr>  
                    <tr class="z2">
                        <td class="zt5" width="120">
                            会员真实姓名：

                        </td>
                        <td width="200">
                            <asp:Label ID="lblRealName" runat="server" Text=""></asp:Label>
                        </td>
                        <td class="zt5" width="120">
                            会员昵称：

                        </td>
                        <td width="200">
                            <asp:Label ID="lblNickName" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>          
                    <tr class="z2">
                        <td class="zt5" width="120">
                            退货原因：
                        </td>
                        <td width="200">
                            <asp:DropDownList ID="DropDownList2" Width="126" runat="server">
                            </asp:DropDownList>                            
                        </td>
                        <td class="zt5" width="120">
                            责任人：
                        </td>
                        <td width="200">
                            <asp:DropDownList ID="DropDownList3" Width="126" runat="server">
                            </asp:DropDownList>                            
                        </td>
                    </tr>                  
                <tr class="z2">
                    <td class="zt5" width="120" style="height: 19px">关联订单：

                    </td>
                    <td width="200" style="height: 19px">
                    <asp:HyperLink ID="lblorder" runat="server" ForeColor="#ff9900"></asp:HyperLink>
                    </td>
                    <td class="zt5" width="120" style="height: 19px">退货人：

                    </td>
                    <td style="width: 200px; height: 19px">
                    <asp:TextBox ID="txtthr" runat="server" Width="111px"></asp:TextBox></td>
                </tr>
                <tr class="z2">
                    <td class="zt5" style="height: 24px">物流公司：

                    </td>
                    <td style="height: 24px">
                    <asp:DropDownList ID="ddlwlgs" runat="server" Width="117px">
                        </asp:DropDownList></td>
                    <td class="zt5" style="height: 24px">退货人电话：

                    </td>
                    <td style="width: 200px; height: 24px;">
                    <asp:TextBox ID="txtthrdh" runat="server" Width="111px"></asp:TextBox></td>
                </tr>
                <tr class="z2">
                    <td class="zt5" style="height: 19px">物流费用：

                    </td>
                    <td style="height: 19px">
                    <asp:TextBox ID="txtwlfy" runat="server" Width="111px" onkeyup="CountAamt()"></asp:TextBox></td>
                    <td class="zt5" style="height: 19px">退货人手机：

                    </td>
                    <td style="width: 200px; height: 19px">
                    <asp:TextBox ID="txtthrsj" runat="server" Width="111px"></asp:TextBox></td>
                </tr>
                <tr class="z2">
                    <td class="zt5" style="height: 19px"><%--费用性质：--%>
                    制单人:
                    </td>
                    <td style="height: 19px">
                    <%--<asp:DropDownList ID="ddlfyxz" runat="server" Width="117px" Enabled="false">
                                                        <asp:ListItem Text="卖方承担" Value="001"></asp:ListItem>
                                <asp:ListItem Text="买方承担" Selected="true" Value="002"></asp:ListItem>
                        </asp:DropDownList>--%>
                       <asp:Label ID="lbCreator" runat="server"></asp:Label> 
                        </td>
                    <td class="zt5" style="height: 19px">退货人邮编：

                    </td>
                    <td style="width: 200px; height: 19px">
                    <asp:TextBox ID="txtthryb" runat="server" Width="111px"></asp:TextBox></td>
                </tr>
                <tr class="z2">
                    <td class="zt5" style="height: 24px">
                        审核人：
                        </td>
                    <td style="height: 24px">
                        <asp:Label ID="lblChecker" runat="server"></asp:Label>
                        </td>
                    <td class="zt5" style="height: 24px">退货人地址：

                    </td>
                    <td style="width: 200px; height: 24px">
                    <asp:TextBox ID="txtthrdz" runat="server" Width="111px"></asp:TextBox></td>
                </tr>
                <tr class="z2">
                    <td class="zt5" style="height: 20px">
                        财务审核人：
                    </td>
                    <td style="height: 20px">
                        <asp:Label ID="lblAChecker" runat="server"></asp:Label>
                     </td>
                    <td class="zt5" style="height: 20px">审核：

                    </td>
                    <td style="width: 200px; height: 20px"><asp:CheckBox ID="CheckBox1" runat="server" Enabled="false" />
                    </td>
                </tr>      
                <tr class="z2">
                    <td class="zt5" style="height: 20px">
                       物流单号：

                    </td>
                    <td style="height: 20px">
                       <asp:TextBox ID="Label7" runat="server" Text='' Width="111px"></asp:TextBox>                     
                    </td>
                    <td class="zt5" style="height: 20px">
                    财务审核：

                    </td>
                    <td style="width: 200px; height: 20px">
                        <asp:CheckBox ID="CheckBox4" runat="server" Enabled="false" />
                    </td>
                </tr>                         
                <tr class="z2">
                     <td class="zt5" style="height: 20px">
                        退款：
                    </td>
                    <td style="height: 20px">
                    <asp:Label ID="Label13" runat="server"></asp:Label>
                    </td>
                    <td class="zt5" style="height: 20px">结算：

                    </td>
                    <td style="width: 200px; height: 20px"><asp:CheckBox ID="CheckBox2" runat="server" Enabled="false" />
                    </td>
                </tr>      
                <tr class="z2">
                    <td class="zt5" rowspan="2">
                    备注：

                    </td>
                    <td rowspan="2">
                    <asp:TextBox TextMode="multiLine" runat="server" ID="Label9" Text=""></asp:TextBox>
                    </td>
                    <td class="zt5" style="height: 19px">已结算金额：

                    </td>
                    <td style="width: 200px; height: 19px">
                        <asp:Label ID="Label15" runat="server" Text=""></asp:Label></td>                    
                </tr>                                 
                <%--<tr class="z2">
                    <td class="zt5" style="height: 19px">退款方式：
                    </td>
                    <td style="width: 200px; height: 19px"><asp:Label ID="Label12" runat="server" Text=''></asp:Label>
                    </td>
                </tr>--%>
            
                <tr class="z2">
                    <td class="zt5" style="height: 20px">作废：

                    </td>
                    <td style="width: 200px; height: 20px;"><asp:CheckBox ID="CheckBox3" runat="server" Enabled="false" />
                    </td>
                </tr>   
                <tr class="z2">
                    <td class="zt5" style="height: 24px">
                        让利金额：

                    </td>
                    <td style="width: 200px; height: 24px">
                        <asp:TextBox ID="txtRangLi" Width="111" Text="0" runat="server" onkeyup="CountAamt()"></asp:TextBox> 
                    </td>
                    <td class="zt5" style="height: 24px">
                        制单日期
                    </td>
                    <td style="width: 200px; height: 24px">
                        <asp:Label ID="lblCreateDate" runat="server"></asp:Label>
                    </td>
                </tr>    
                <tr class="z2">
                    <td class="zt5" style="height: 24px">
                         退积分：

                    </td>
                    <td style="width: 200px; height: 24px">
                        <asp:Label ID="Label14" runat="server" Text=''></asp:Label>
                    </td>
                    <td class="zt5" style="height: 24px">
                        审核日期
                    </td>
                    <td style="width: 200px; height: 24px">
                        <asp:Label ID="lblCheckDate" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr class="z2">
                    <td class="zt5" style="height: 24px">
                        商品总金额

                    </td>
                    <td style="width: 200px; height: 24px">
                        <asp:Label ID="lblProductAmt" runat="server"></asp:Label>
                    </td>
                    <td class="zt5" style="height: 24px">
                        财务审核日期
                    </td>
                    <td style="width: 200px; height: 24px">
                        <asp:Label ID="lblACheckDate" runat="server"></asp:Label>
                    </td>
                </tr>       
                <tr class="z2">
                    <td class="zt5" style="height: 24px">
                        原订单物流费用

                    </td>
                    <td style="width: 200px; height: 24px">
                        <asp:Label ID="lblOldWLFY" runat="server"></asp:Label>
                    </td>
                    <td class="zt5" style="height: 24px">
                       
                    </td>
                    <td style="width: 200px; height: 24px">
                       
                    </td>
                </tr>                        
            </table>
        </div>
     </asp:Panel>
        


        <div class="menu_bg2">
            <span class="jiacu">商品明细</span>
        </div>
        
        <div class="juli">
        <asp:DataList ID="DataList1" runat="server" 
            Width="100%" CellPadding="0" OnItemDataBound="DataList1_ItemDataBound">
            <HeaderTemplate>
            <table id="DALEIList" class="tb2" border="0" cellspacing="1" cellpadding="0">
                <tr class="z1">
                    <td class="zt3">
                        代码名称</td>
                    <td class="zt3" width="70">
                        颜色</td>
                    <td class="zt3" width="50">
                        尺码</td>
                   <td style="display:none" class="zt3" width="90">
                        退往库位</td>    
                    <td class="zt3" width="70">
                        数量</td>
                    <td class="zt3" width="70">
                        标准单价</td>
                    <td class="zt3" width="70">
                        折扣</td>
                    <td class="zt3" width="70">
                        实际单价</td>
                    <td class="zt3" width="70">标准金额</td>
                    <td class="zt3" width="70">实际金额</td>
                    <td class="zt3" width="70">重量</td>
                </tr></table>
            </HeaderTemplate>
            <ItemTemplate>
            <table width="1050" border="0" cellspacing="0" cellpadding="0">
                <tr style="line-height:22px;">
                    <td align="center" class="bk_left">
                        <input id="hidDetailId" type="hidden" runat="server" value='<%# Eval("RDD_DETAILID")%>' />
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("RDD_CMDCODE").ToString().Trim()+"  "+Eval("spmc").ToString().Trim() %>'></asp:Label></td>
                    <td width="70" align="center" class="bk_middle">
                        <%# Eval("colorname") %>
                    </td>
                    <td width="50" align="center" class="bk_middle">
                        <%# Eval("sizename") %>
                    </td>
                    <td style="display:none" width="90" align="center" class="bk_middle">
                        <asp:DropDownList ID="dropKW" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td width="70" align="right" class="bk_middle">
                        <%# Eval("RDD_QTY") %></td>
                    <td width="70" align="right" class="bk_middle">
                        <asp:Label ID="lblspsprice" runat="server" Text='<%# Eval("RDD_SPRICE").ToString().Trim() %>'></asp:Label>
                    </td>
                    <td width="70" align="right" class="bk_middle">
                        <%# String.Format("{0:0.00}",Eval("RDD_DISC")) %></td>
                    <td width="70" align="right" class="bk_middle">
                        <%# Eval("RDD_APRICE") %>
                    </td>
                    <td width="70" align="right" class="bk_middle">
                        <%# Eval("RDD_SAMT") %>
                    </td>
                    <td width="70" align="right" class="bk_middle">
                        <%# Eval("RDD_AAMT") %>
                    </td>
                    <td width="70" align="right" class="bk_middle">
                        <asp:Label ID="lblweight" runat="server" Text='<%# String.Format("{0:0}",Eval("RDD_WEIGHT"))%>'></asp:Label>

                    </td>
                </tr></table>
            </ItemTemplate>
            <FooterTemplate>
            </FooterTemplate>
        </asp:DataList>
        </div>
              <div class="menu_bg2">
            <span class="jiacu">支付明细</span>
        </div>  
        <div class="juli"><asp:DataList ID="dlistPayDocPayDetail" runat="server" OnItemDataBound="dlistPayDocPayDetail_ItemDataBound" CellPadding="0">
            <HeaderTemplate>
                <table class="tb2" border="0" cellspacing="1" cellpadding="0">
                    <tr class="z1">
                        <td class="zt3" width="100">
                            交易类型
                        </td>
                        <td class="zt3" width="140">
                            支付方式
                        </td>
                        <td class="zt3" width="100">
                            支付金额
                        </td>
                        <td class="zt3" width="130">
                            交易号

                        </td>
                        <td class="zt3" width="130">
                            帐号
                        </td>
                        <td class="zt3">
                            备注
                        </td>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemTemplate>
                <table width="1050" border="0" cellspacing="0" cellpadding="0">
                    <tr style="line-height:22px;">
                        <td  align="center" width="100" class="bk_left">
                            <asp:DropDownList ID="dropDealType" runat="server" Width="90" Enabled="false">
                            <asp:ListItem Text="即时到帐" Value="001"></asp:ListItem>
                            <asp:ListItem Text="担保交易" Value="002"></asp:ListItem>
                            <asp:ListItem Text="结余款" Value="003"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td width="140" align="center" class="bk_middle">
                            <asp:DropDownList ID="dropPayType" runat="server" Width="90" Enabled="false">
                            </asp:DropDownList>&nbsp;
                        </td>
                        <td width="100" align="right" class="bk_middle">
                            <asp:Label ID="lblPayAmount" runat="server" CssClass="kuandu1" Text='<%# String.Format("{0:0.00}",Eval("RDPD_PAYAMT"))%>'></asp:Label>&nbsp;
                        </td>
                        <td width="130" align="center" class="bk_middle">
                            <asp:Label ID="lblDealId" runat="server" CssClass="kuandu1" Text='<%# Eval("RDPD_DEALID")%>'></asp:Label>&nbsp;
                        </td>
                        <td width="130" align="center" class="bk_middle">
                            <asp:Label ID="lblAccount" runat="server" CssClass="kuandu2" Text='<%# Eval("RDPD_ACCOUNT")%>'></asp:Label>&nbsp;
                        </td>
                        <td align="center" class="bk_middle">
                            <asp:Label ID="txtNotes" runat="server" CssClass="kuandu2" Text='<%# Eval("RDPD_NOTE")%>'></asp:Label>&nbsp;
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList></div>

                    <div class="menu_bg2"><span class="jiacu">意见详细信息</span></div>
                    <div class="juli"><uc2:RETURNNOTEListControl ID="RETURNNOTEListControl1" runat="server" />        
                        <input id="hidReturnDocAmt" type="hidden" runat="server" />
</div>
            <div id="div_background" class="divbackground">
            </div>
    </form>
</body>
</html>
